fn main() {
    // import remotefs trait and client
    use remotefs::{fs::UnixPex, RemoteFs};
    use remotefs_smb::{SmbCredentials, SmbFs};
    use std::path::Path;
    let mut client = SmbFs::new(
        SmbCredentials::new("localhost:3445", "temp")
            .username("test")
            .password("test"),
    );
    // connect
    assert!(client.connect().is_ok());
    // get working directory
    println!("Wrkdir: {}", client.pwd().ok().unwrap().display());
    // make directory
    assert!(client
        .create_dir(Path::new("\\cargo"), UnixPex::from(0o755))
        .is_ok());
    // change working directory
    assert!(client.change_dir(Path::new("\\cargo")).is_ok());
    // disconnect
    assert!(client.disconnect().is_ok());
}
